package appapi.entity.Zhongjiao;

import appapi.common.BaseEntity;
import appapi.entity.app.AnnexEntity;
import appapi.entity.app.OnsitedetailEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.springframework.beans.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;

/**
 * @author  Yujie
 * @date 2023/5/16 14:53
 * @description: 
 */
/**
    * 附件信息表
    */
@ApiModel(value="附件信息表")
@Data
public class Annex  {
    /**
    * 记录ID
    */
    @ApiModelProperty(value="记录ID")
    private Long annexId;

    /**
    * 附件标题
    */
    @ApiModelProperty(value="附件标题")
    private String annexTitle;

    /**
    * 附件类型 自检、月检、巡检 、整改 枚举
    */
    @ApiModelProperty(value="附件类型 自检、月检、巡检 、整改 枚举",required = true)
    @NotNull(message = "附件类型")
    private String annexType;

    /**
    * 附件图片地址
    */
    @ApiModelProperty(value="附件图片地址",required = true)
    @NotNull(message = "附件类型")
    private String annexUrl;

    /**
    * 创建时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
    * 附件备注
    */
    @ApiModelProperty(value="附件备注")
    private String annexNote;

    @ApiModelProperty(value="")
    private Long createUser;

    @ApiModelProperty(value="")
    private Long modifyUser;

}